<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="device=device-width">
    <title>doc</title>
    <style>
        #box {
            width: 300px;
            height: 300px;
            padding: 10px;
            border: 2px solid red;
            margin: 50px auto;
        }

        a {
            width: 100px;
            height: 100px;
            background: #ff88fd;
            display: block;
            text-decoration: none;
            text-align: center;
            line-height: 100px;
            color: #FFFFFF;
        }

        a:hover {
            background: #0099ff;
        }

        .a2, .a4 {
            position: relative;
            left: 200px;
            top: -100px;
        }

        .a5 {
            position: relative;
            left: 100px;
            top: -300px;
        }

    </style>
</head>

<body>
    <a href="xq.html">作业一</a>
    <a href="demo.html">作业二</a>
    <a href="index.html">作业三</a>
    <a href="string.html">作业四</a>
    <a href="temp.html">作业五</a>
<div id="box">
    <a class="a1" href="#">链接1</a>
    <a class="a2" href="#">链接2</a>
    <a class="a3" href="#">链接3</a>
    <a class="a4" href="#">链接4</a>
    <a class="a5" href="#">链接5</a>
</div>

</body>
</html>
